package md.mru.core.dtos;


import java.io.Serializable;
import java.util.*;

public class ContractDto implements Serializable, BaseDto {

    private static final long serialVersionUID = 1452166648217665243L;

    private long id;
    private String contractNr;
    private Date contractDate;
    private Date toDate;
    private Date fromDate;
    private Long trialPeriod;
    private Boolean basic;
    private long folder;
    private Set<ContractAgreementDto> contractAgreements = new HashSet<ContractAgreementDto>(0);//acorduri la contract

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getContractNr() {
        return contractNr;
    }

    public void setContractNr(String contractNr) {
        this.contractNr = contractNr;
    }

    public Date getContractDate() {
        return contractDate;
    }

    public void setContractDate(Date contractDate) {
        this.contractDate = contractDate;
    }

    public Date getToDate() {
        return toDate;
    }

    public void setToDate(Date toDate) {
        this.toDate = toDate;
    }

    public Date getFromDate() {
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }

    public Long getTrialPeriod() {
        return trialPeriod;
    }

    public void setTrialPeriod(Long trialPeriod) {
        this.trialPeriod = trialPeriod;
    }

    public Long getFolder() {
        return folder;
    }

    public void setFolder(Long folder) {
        this.folder = folder;
    }

    public Boolean getBasic() {
        return basic;
    }

    public void setBasic(Boolean basic) {
        this.basic = basic;
    }

    public Set<ContractAgreementDto> getContractAgreements() {
        return contractAgreements;
    }

    public List<ContractAgreementDto> getContractAgreementsAsList() {
        return new ArrayList<>(contractAgreements);
    }

    public void setContractAgreements(Set<ContractAgreementDto> contractAgreements) {
        this.contractAgreements = contractAgreements;
    }
}


